package com.ygsoft.tianlu_mall.mapper;

import java.util.HashMap;
import java.util.List;

public interface CartMapper {
    List<HashMap<String,Object>> checkGoodsInCart(HashMap<String, Object> map);
    List<HashMap<String,Object>> checkGoodsNotMine(HashMap<String, Object> map);
    int getShopIdByGoodsId(int goods_id);
    void addGoodsToCart(HashMap<String, Object> map);

    void deleteGoodsFromCart(HashMap<String, Object> map);

    List<HashMap<String, Object>> getShopInfoFromCart(int user_id);
    List<HashMap<String, Object>> getGoodsInfoFromCart(int user_id);
    List<HashMap<String, Object>> getPropertyAndValueFromCart(int user_id);

    void clearFailedGoods(HashMap<String, Object> map);

    int getCartCount(int user_id);
}
